<?php 
HeaderScripts::addScripts(array(
	'site/carousel.js'
));
HeaderScripts::addStyles(array(
	'site/carousel.css'
));
?>
<input type="hidden" value="<?php echo intval($count) ?>" id="carouselItemCount" name="carouselItemCount"> 
<ul class="carousel jcarousel-skin-tango" id="mycarousel">
	<?php $odd = true; ?>
	<?php if ($count > 0) {?>
		<?php foreach ($data as $key => $value) {?>
	<li><div class="carouselItem <?php echo ($odd ? ' odd' : ' even') ?>">
		<table class="carouselWeather">
			<tr>
				<td class="weatherTdCity"><?php echo $key ?><br /><img src="/public/css/images/weatherIcon.png" vspace="3"></td>
				<td class="weatherTdSeparator"></td>
				<td class="weatherTemperature"><?php echo $value['temperatureInterval'] ?></td>
				<td class="weatherTdSeparator"></td>
				<td class="weatherDescription"><?php echo $value['cloud'] ?><br /><?php echo $value['precipitation'] ?></td>
				<td class="weatherTdSeparator"></td>
				<td class="weatherTdPressure"><?php echo $value['pressure'] ?><br />мм. рт. ст.</td>
				<td class="weatherTdSeparator"></td>
				<td class="weatherTdHumidity">Влажность<br /><?php echo $value['humidity'] ?>%</td>
				
			</tr>
		</table>
		<?php $odd = ($odd ? false : true) ?>
	</div></li>
		<?php } ?>
	<?php } ?>
</ul>